finish_voting_on_proposal

@mount("votes.finish_voting_on_proposal") operation finish_voting_on_proposal(proposal_id: rowid)

Ends the voting process for a specific proposal. The operation is used to finalize the voting process and prevent further voting on the specified proposal.

Parameters

proposal_id
  • The ID of the proposal for which voting is to be concluded.

Throws

UnauthorizedError
  • If the requester does not have necessary privileges.

ProposalNotFoundError
  • If the proposal with the given proposal_id does not exist.

InvalidProposalStateError
  • If the proposal is not in a state that allows voting to be ended.